import 'package:wechat_assets_picker/wechat_assets_picker.dart';

///@author:create by BZY
///Date: 2021/12/8 11:45
///Description: flutter_wechat_assets_picker 自定义路径名称
class CustomPickerDelegate extends CommonSortPathDelegate {
  @override
  void sort(List<AssetPathEntity> list) {
    for (final AssetPathEntity entity in list) {
      // 如果这个路径的 `isAll` 为真，则该路径就是你需要的。
      if (entity.isAll) {
        entity.name = '最近';
      }
    }
  }
}
